/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BUS;

import DAO.NamHocDAO;
import POJO.NamHocPOJO;
import java.util.ArrayList;

/** @author
 *  ITEC.HCMUS.EDU.VN
 *  Ngô Huy Đạt
 *  0869005
 *  nhdat.itec@gmail.com
 */
public class NamHocBUS {

    public static  ArrayList<NamHocPOJO> selectAll(){
        ArrayList<NamHocPOJO> list = NamHocDAO.selectAll();
        return list;
    }


    public static boolean insert(String MaNamHoc,String NamHoc){
        boolean kq = NamHocDAO.insert(MaNamHoc, NamHoc);
        return kq;
    }

    public static boolean  delete(String MaNamHoc) {
        boolean kq = NamHocDAO.delete(MaNamHoc);
        return kq;
    }


    public static boolean  update(String MaNamHoc,String NamHoc) {
        boolean kq = NamHocDAO.update(MaNamHoc, NamHoc);
        return kq;
    }
    //END
}
